#include "widget.h"

#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    QString s = "QPushButton {color : red}";
    // 当鼠标放上去时就变蓝色
    s += "QPushButton:hover {color : blue}";
    // 当鼠标按下时就变绿色
    s += "QPushButton:pressed {color : green}";
    a.setStyleSheet(s);

    Widget w;
    w.show();
    return a.exec();
}
